package Game;

//import java.awt.List;
import java.awt.Graphics2D;

public class Level03Gradius extends Scene
{

	Background background;
	PlayerGradius player = new PlayerGradius(400, 500, 20, 20);
	

	public Level03Gradius()
	{
		background = new Background (0,0,800,600);
		background.Load("/Imagens/background.png");
		
		for (int i  =0 ; i < ShotManagerGradius.playerShot.size(); i++)
			ShotManagerGradius.playerShot.remove(i);
		
		EnemyManagerGradius.Setup(12, 6, 1, 4);
	}

	@Override
	public void update(InputManager input) {
		EnemyManagerGradius.Update(ShotManagerGradius.playerShot);
    	player.Update(input);
    	ShotManagerGradius.Update();
    	
    	if(EnemyManagerGradius.recs.size() == 0)
    	{
    		SceneManager.MudarCena();
    	}
	}

	@Override
	public void draw(Graphics2D g2d) {
		
		background.Draw(g2d);
		EnemyManagerGradius.Draw(g2d);
		player.Draw(g2d);
		
		ShotManagerGradius.Draw(g2d);	
	}
}
